package com.ruoyi.pms.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品SKU对象 pms_product_sku
 * 
 * @author zouhuu
 * @date 2021-07-20
 */
public class PmsProductSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** sku编码 */
    @Excel(name = "sku编码")
    private String skuCode;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 市场价 */
    @Excel(name = "市场价")
    private BigDecimal priceMarket;

    /** 成本价 */
    @Excel(name = "成本价")
    private Long priceCost;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 预警库存 */
    @Excel(name = "预警库存")
    private Long lowStock;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 销量 */
    @Excel(name = "销量")
    private Long sale;

    /** 销售属性 */
    @Excel(name = "销售属性")
    private String spData;

    /** 是否删除(0正常1删除) */
    private Integer isDel;

    /** 状态(0正常1停用) */
    @Excel(name = "状态(0正常1停用)")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setSkuCode(String skuCode) 
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode() 
    {
        return skuCode;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPriceMarket(BigDecimal priceMarket) 
    {
        this.priceMarket = priceMarket;
    }

    public BigDecimal getPriceMarket() 
    {
        return priceMarket;
    }
    public void setPriceCost(Long priceCost) 
    {
        this.priceCost = priceCost;
    }

    public Long getPriceCost() 
    {
        return priceCost;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setLowStock(Long lowStock) 
    {
        this.lowStock = lowStock;
    }

    public Long getLowStock() 
    {
        return lowStock;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setSale(Long sale) 
    {
        this.sale = sale;
    }

    public Long getSale() 
    {
        return sale;
    }
    public void setSpData(String spData) 
    {
        this.spData = spData;
    }

    public String getSpData() 
    {
        return spData;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("skuCode", getSkuCode())
            .append("price", getPrice())
            .append("priceMarket", getPriceMarket())
            .append("priceCost", getPriceCost())
            .append("stock", getStock())
            .append("lowStock", getLowStock())
            .append("pic", getPic())
            .append("sale", getSale())
            .append("spData", getSpData())
            .append("isDel", getIsDel())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
